<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$search = CHtml::tag('div', array('class'=>'summary'),CHtml::label('Search', 'search')." ".CHtml::textField('s','',array('onkeydown'=>'if (event.keyCode == 13) {$.fn.yiiGridView.update("yw0",{"data":"&s="+$(this).val()});}')));
$this->widget('zii.widgets.grid.CGridView',array('dataProvider'=>$data,
        'columns'=>$columns,'selectionChanged'=>'js:function(){ alert($.fn.yiiGridView.getSelection("yw0"))}','template'=>$search.'{items}{pager}'));
?>
